<form action="<?php echo $this->escape($this->element->getAction()) ?>"
      method="<?php echo $this->escape($this->element->getMethod()) ?>" 
      name="<?php echo $this->escape($this->element->getName()) ?>" 
      enctype="<?php echo $this->escape($this->element->getEnctype()) ?>" 
      
      class="form-search">

	
	<?php
	$verif = array();
	$element = $this->element;
	foreach ($element->getMessages() as $msg):
	$verif = array_merge($verif,$msg);
	endforeach;
	if(!empty($verif)):
	?>
	<div class="alert alert-error">
		<button class="close" data-dismiss="alert" type="button"> × </button>
	    <strong>Oops!</strong>
	    <br>
	    <?php 
	    foreach ($verif as $v){
			echo $v."<br>";
		}
	    ?>
    </div>
	<?php 
	endif;
	$element = $this->element->keyword;
	echo $this->{$element->helper}(
	$element->getName(),
	$element->getValue(),
	$element->getAttribs()) ;
	?>
		<div id="panel" style="display: none;">
			<div class="navbar">
			    <div class="navbar-inner-mini-rounded">
				    <ul class="nav">
					    <li class="dropdown">
							<a class="dropdown-map" data-toggle="dropdown" href="#">
							<b class="icon-map-marker"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
									<?php 
									$element = $this->element->admin_area_lvl1;
									echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs()) ;
									$element = $this->element->admin_area_lvl2;
									echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs()) ;
									$element = $this->element->country;
									echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs()) ;
									?>
									<div id="my_map" class="gmap3" style="height: 615px; width: 615px; margin: auto; border: 1px dashed #C0C0C0;">
										<?php  echo $this->action('addresspicker', 'map', null, array());  ?>
									</div>
								</li>
							</ul>
						</li>
					    <li class="dropdown">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b> € </b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->pricemin;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs()) ;
								$element = $this->element->pricemax;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs()) ;
								?>
								</li>
							</ul>
						</li>
						<li class="dropdown" id="div_surface" style="display: none">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b> m² </b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->surfacemin;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								$element = $this->element->surfacemax;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
								</li>
							</ul>
						</li>
						<li class="dropdown" id="div_cylinder" style="display: none">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b class="icon-upload"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->cylindermin;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								$element = $this->element->cylindermax;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
								</li>
							</ul>
						</li>
						<li class="dropdown" id="div_year" style="display: none">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b class="icon-calendar"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->yearmin;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								$element = $this->element->yearmax;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
								</li>
							</ul>
						</li>
						<li class="dropdown" id="div_energy" style="display: none">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b class="icon-energy"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->energy;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
								</li>
							</ul>
						</li>
						<li class="dropdown" id="div_transmission" style="display: none">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b class="icon-transmission"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->transmission;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
								</li>
							</ul>
						</li>
						<li class="dropdown" id="div_mileage" style="display: none">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<b class="icon-road"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
								<?php
								$element = $this->element->mileagemin;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								$element = $this->element->mileagemax;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
								</li>
							</ul>
						</li>
				    </ul>
				    <ul class="nav pull-right">
				    	<li>
				    		<?php
				    		$element = $this->element->class;
				    		echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs()) ;
				    		?>
			    		    <div class="btn-group" data-toggle="buttons-radio">
							    <button type="button" class="btn btn-mini">Rent</button>
							    <button type="button" class="btn btn-mini">Sale</button>
						    </div>
				    	</li>
				    	<li class="divider-vertical"></li>
				    	<li>
				    		<div class="styled-select">
				    		<?php
								$element = $this->element->objectselect;
								echo $this->{$element->helper}($element->getName(),$element->getValue(),$element->getAttribs(),(method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : array()) ;
								?>
							</div>
				    	</li>
				    	<li class="divider-vertical"></li>
				    	<li>
				    		<button class="btn btn-mini btn-info" type="submit"><?php echo $this->element->submit->getLabel(); ?> <span class="icon-search icon-white"></span></button>
				    	</li>
				    </ul>
			    </div>
		    </div>
		</div>
</form>
	 
